<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <span>用户名称：{$data.nick_name}</span>
    </div>
    <a href="javascript:history.go(-1);" class="btn btn-primary btn-m f-r" id="btn_upload">返回</a>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>时间</span>
            <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
        </div>
        <div class="search-list">
            <span>礼物名称</span>
            <select ms-duplex="@search_data.prop_id">
                <option value="0" {if $prop_id eq 0}selected="selected"{/if}>全部</option>
                {foreach from="$data.prop_list" item="prop"}
                <option value="{$prop.id}" {if $prop_id eq $prop.id}selected="selected"{/if}>{$prop.name}</option>
                {/foreach}
            </select>
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>时间</th>
                    <th>礼物名称</th>
                    <th>数量</th>
                    <th>礼物总价值</th>
                    <th>消耗游戏币数量</th>
                </tr>
            </thead>
            <tbody>
            {foreach from="$data.gift_list" item="log"}
            <tr>
                <td>{function name="to_date" v=$log.create_time }</td>
                <td>{$log.prop_name}</td>
                <td>{$log.num}</td>
                <td>{$log.total_ticket}</td>
                <td>{$log.total_diamonds}</td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="5">
                    <span>暂无数据</span>
                </td>
            </tr>
            {/foreach}
            {if $data.gift_list}
            <tr>
                <td>合计</td>
                <td></td>
                <td></td>
                <td>{$data.total_ticket_all}</td>
                <td>{$data.total_diamonds_all}</td>
            </tr>
            {/if}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>